import request from '@/utils/request'

export const getPermissionListAPI = () => request.get('/sys/permission')
export const addPermissionAPI = (data) => request.post('/sys/permission', data)
export const delPermissionAPI = id => request.delete(`/sys/permission/${id}`)
export const getPermissionDetailAPI = id => request.get(`/sys/permission/${id}`)
export const updatePermissionAPI = data => request.get(`/sys/permission/${data.id}`, data)
